﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Lesson5 : MonoBehaviour
{
    // Start is called before the first frame update
    void Start()
    {
        Player player = new Player();
        XmlDataMgr.Instance.SaveData(player, "PlayerXml");

        Player player2 = XmlDataMgr.Instance.LoadData(typeof(Player), "PlayerXml") as Player;
    }
}
